class BannerItem {
  late String title;
  late String type;
  late String article_id;
  late String advert_pic;
  late String advert_pic_short;
  late String color;
  late String desc;
  late String link;
  late String path;
  late bool isHot = false;
  late String time;
  BannerItem(Map<String, dynamic> json) {
    this.title = json["title"] as String;
    this.type = '${json["type"]}';
    this.article_id = json["article_id"] as String;
    this.advert_pic = json["advert_pic"] as String;
    this.advert_pic_short = json["advert_pic_short"] as String;
    this.color = json["color_hex"] as String;
    this.desc = json["desc"] as String;
    this.link = json["link"] as String;
    this.path = json["path"] as String;
    this.time = '${json['create_time']}';
  }
  Map<String, dynamic> get json {
    var result = Map<String, dynamic>();
    result["title"] = this.title;
    result["type"] = this.type;
    result["article_id"] = this.article_id;
    result["advert_pic_short"] = this.advert_pic_short;
    result["advert_pic"] = this.advert_pic;
    result["color"] = this.color;
    result["desc"] = this.desc;
    result["path"] = this.path;
    result["link"] = this.link;
    result["time"] = this.time;
    return result;
  }
}
